package top.scsoul.boot.utils;

public class StringUtil {
    public static boolean isNullOrEmpty(String... str) {
        for (String s : str) {
            if (s == null || "".equals(s.trim())) {
                return true;
            }
        }
        return false;
    }

    public static void isNullOrEmptyThrowException(String... str) {
        if(isNullOrEmpty(str)){
            throw new IllegalArgumentException("参数为空");
        }
    }
}
